package com.tdkj.model.user;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.tdkj.model.base.BaseEntity;

/**
 * XnkyUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "xnky_friend")
public class BeanFriend extends BaseEntity {
	private static final long serialVersionUID = 6488539828124759956L;
	private Timestamp createtime;
	private String fname;
	private Long fid;
	private BeanFriendCategory category;
	
	public BeanFriend() {
		super();
	}
	public BeanFriend(Timestamp createtime, String fname, Long fid) {
		super();
		this.createtime = createtime;
		this.fname = fname;
		this.fid = fid;
	}
	public String getFname() {
		return fname;
	}
	public void setFname(String fname) {
		this.fname = fname;
	}
	public Long getFid() {
		return fid;
	}
	public void setFid(Long fid) {
		this.fid = fid;
	}
	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "categoryid")
	public BeanFriendCategory getCategory() {
		return category;
	}
	public void setCategory(BeanFriendCategory category) {
		this.category = category;
	}
	
}